package com.bf.electroplating.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 企业设备状态表
 * </p>
 *
 * @author gzd
 * @since 2025-09-22
 */
@Getter
@Setter
@TableName("company_device_status")
@Schema( description = "企业设备状态表")
public class CompanyDeviceStatus implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema( description ="状态ID")
    @TableId("ID")
    private String id;

    @Schema( description ="设备ID")
    @TableField("DEVICE_ID")
    private String deviceId;

    @Schema( description ="设备编号")
    @TableField("DEVICE_CODE")
    private String deviceCode;

    @Schema( description ="设备名称")
    @TableField("DEVICE_NAME")
    private String deviceName;

    @Schema( description ="企业ID")
    @TableField("COMPANY_ID")
    private String companyId;

    @Schema( description ="企业名称")
    @TableField("COMPANY_NAME")
    private String companyName;

    @Schema( description ="设备状态（1：运行，2：停止，3：故障）")
    @TableField("DEVICE_STATUS")
    private String deviceStatus;

    @Schema( description ="A相电压(V)")
    @TableField("VOLTAGE_A")
    private BigDecimal voltageA;

    @Schema( description ="B相电压(V)")
    @TableField("VOLTAGE_B")
    private BigDecimal voltageB;

    @Schema( description ="C相电压(V)")
    @TableField("VOLTAGE_C")
    private BigDecimal voltageC;

    @Schema( description ="A相电流(A)")
    @TableField("CURRENT_A")
    private BigDecimal currentA;

    @Schema( description ="B相电流(A)")
    @TableField("CURRENT_B")
    private BigDecimal currentB;

    @Schema( description ="C相电流(A)")
    @TableField("CURRENT_C")
    private BigDecimal currentC;

    @Schema( description ="有功功率(kW)")
    @TableField("ACTIVE_POWER")
    private BigDecimal activePower;

    @Schema( description ="无功功率(kVar)")
    @TableField("REACTIVE_POWER")
    private BigDecimal reactivePower;

    @Schema( description ="功率因数")
    @TableField("POWER_FACTOR")
    private BigDecimal powerFactor;

    @Schema( description ="总电能(kWh)")
    @TableField("TOTAL_ENERGY")
    private BigDecimal totalEnergy;

    @Schema( description ="启停阈值(A)")
    @TableField("START_STOP_THRESHOLD")
    private BigDecimal startStopThreshold;

    @Schema( description ="数据时间")
    @TableField("DATA_TIME")
    private LocalDateTime dataTime;

    @Schema( description ="最后更新时间")
    @TableField("LAST_UPDATE_TIME")
    private LocalDateTime lastUpdateTime;

    @Schema( description ="创建人")
    @TableField("CREATE_BY")
    private String createBy;

    @Schema( description ="创建时间")
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    @Schema( description ="修改人")
    @TableField("UPDATE_BY")
    private String updateBy;

    @Schema( description ="修改时间")
    @TableField("UPDATE_TIME")
    private LocalDateTime updateTime;

    @Schema( description ="逻辑删除标志（0：未删除，1：已删除）")
    @TableField("DEL_FLAG")
    private String delFlag;

    @Schema( description ="备注")
    @TableField("REMARK")
    private String remark;

    @Schema( description ="备注")
    @TableField("CHART_LIST")
    private String chartList;


}
